import 'package:flutter/material.dart';
void main(){
  runApp(MyApp());
}

class MyApp extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(
      title: 'flutter widget',
      //应用程序的主题，各种的定制颜色都可以设置，用于程序主题切换
      theme: ThemeData(
        //主题色 蓝色
        primarySwatch: Colors.green,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Card Widget组件'),
        ),
        body: Card(
          color: Colors.yellow[50],
          elevation: 50.0,//阴影大小
          child: ListView(
            children: <Widget>[
              ListTile(
                title: Text(
                    '四川省成都市武侯区潮音路10号',
                    style: TextStyle(
                      fontWeight: FontWeight.w500
                    ),
                ),
                subtitle: Text('小招的地址'),
                leading: Icon(Icons.account_box,color: Colors.lightBlue,),
              ),
              Divider(
                color: Colors.red,
              ),
              ListTile(
                title: Text(
                  '四川省成都市武侯区潮音路10号',
                  style: TextStyle(
                      fontWeight: FontWeight.w500
                  ),
                ),
                subtitle: Text('小招的地址'),
                leading: Icon(Icons.account_box,color: Colors.lightBlue,),
              ),
              Divider(),
              ListTile(
                title: Text(
                  '四川省成都市武侯区潮音路10号',
                  style: TextStyle(
                      fontWeight: FontWeight.w500
                  ),
                ),
                subtitle: Text('小招的地址'),
                leading: Icon(Icons.account_box,color: Colors.lightBlue,),
              ),
              ListTile(
                title: Text(
                  '四川省成都市武侯区潮音路10号',
                  style: TextStyle(
                      fontWeight: FontWeight.w500
                  ),
                ),
                subtitle: Text('小招的地址'),
                leading: Icon(Icons.account_box,color: Colors.lightBlue,),
              ),
              Divider(
                color: Colors.red,
              ),
              ListTile(
                title: Text(
                  '四川省成都市武侯区潮音路10号',
                  style: TextStyle(
                      fontWeight: FontWeight.w500
                  ),
                ),
                subtitle: Text('小招的地址'),
                leading: Icon(Icons.account_box,color: Colors.lightBlue,),
              ),
              Divider(),
              ListTile(
                title: Text(
                  '四川省成都市武侯区潮音路10号',
                  style: TextStyle(
                      fontWeight: FontWeight.w500
                  ),
                ),
                subtitle: Text('小招的地址'),
                leading: Icon(Icons.account_box,color: Colors.lightBlue,),
              ),
              ListTile(
                title: Text(
                  '四川省成都市武侯区潮音路10号',
                  style: TextStyle(
                      fontWeight: FontWeight.w500
                  ),
                ),
                subtitle: Text('小招的地址'),
                leading: Icon(Icons.account_box,color: Colors.lightBlue,),
              ),
              Divider(
                color: Colors.red,
              ),
              ListTile(
                title: Text(
                  '四川省成都市武侯区潮音路10号',
                  style: TextStyle(
                      fontWeight: FontWeight.w500
                  ),
                ),
                subtitle: Text('小招的地址'),
                leading: Icon(Icons.account_box,color: Colors.lightBlue,),
              ),
              Divider(),
              ListTile(
                title: Text(
                  '四川省成都市武侯区潮音路10号',
                  style: TextStyle(
                      fontWeight: FontWeight.w500
                  ),
                ),
                subtitle: Text('小招的地址'),
                leading: Icon(Icons.account_box,color: Colors.lightBlue,),
              )
            ],
          ),
        ),
      ),
    );
  }
}